﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using eProject_SEM3_SecurityServices.DataAccess;
using eProject_SEM3_SecurityServices.ObjectClass;

namespace eProject_SEM3_SecurityServices.Bussiness
{
    public class BService
    {
        DService dservice = null;

        public BService()
        {
            dservice = new DService();
        }
            
        public List<OService> getServiceList()
        {
            return dservice.getServiceList();
        }
        //@serviceId int
        public OService getServiceDetails(int serId)
        {
            return dservice.getServiceDetails(serId);
        }


        /*@Name nvarchar(250),
        @Description nvarchar(250)*/
        public bool AddNewService(OService service)
        {
            return dservice.AddNewService(service);
        }
        /*@Id int,
        @Name nvarchar(250),
        @Description nvarchar(250)*/
        public bool UpdateService(OService service)
        {
            return dservice.UpdateService(service);
        }
        //@serId int
        public bool DeleteService(int serId)
        {
            return dservice.DeleteService(serId);
        }
    }
}